package com.hbm.usercenter.factory;

import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.widget.ListView;

import com.hbm.usercenter.utils.UIUtils;


public class ListViewFactory {
	public static ListView createListView() {
		ListView listView = new ListView(UIUtils.getContext());

		listView.setCacheColorHint(Color.TRANSPARENT);
		listView.setFastScrollEnabled(true);
		// item点击的时候没有具体的颜色变化
		listView.setSelector(new ColorDrawable(Color.TRANSPARENT));

		listView.setDivider(new ColorDrawable(0xFFF0EFF5));
		listView.setDividerHeight(20);

		return listView;
	}
}
